/** 排除某个类型；
 * T为联合类型
 */
type BandType<T, K> = T extends K ? never : T;

export function commonJudgeType(target: any) {
  let type = typeof target;
  if (type === "object") {
    const obj = {};
    type = obj.toString.call(target).slice(8, -1).toLocaleLowerCase();
  }
  return type;
}
